maintainer="Michał Polański <michal@polanski.me>"
pkgname=dysk
pkgver=2.9.1
pkgrel=0
pkgdesc="Get information on your mounted disks"
url="https://github.com/Canop/dysk"
license="MIT"
arch="all"
makedepends="cargo cargo-auditable"
source="https://github.com/Canop/dysk/archive/v$pkgver/dysk-$pkgver.tar.gz
	fix-ppc64le-build.patch
	"
options="net" # cargo fetch

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/dysk -t "$pkgdir"/usr/bin/
}

sha512sums="
0408e0d4885167117d601db0cb3c3a8f4b9aa2883a33e431cccc43355a05f21393a09cb3cd3b59fabd3aa1250ec42dd7cd8bde3d09ae9464ea032ebe99c28aec  dysk-2.9.1.tar.gz
ca1f06a78ba6d3106b70b0316c4b3f928355e4d0b46ec32e7bef209e7a1757b720dbc49345419e402a8a6d943d4729e92bb62d078bd3ba22e26debb7deda3845  fix-ppc64le-build.patch
"
